package com.boarsoft.webapp;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.boarsoft.soagov.svc.ServiceHandler;

/**
 * 用于处理HTTP请求
 * 
 * @author Mac_J
 *
 */
public interface HttpServiceHandler extends ServiceHandler {
	/**
	 * 处理HTTP请求的方法
	 * 
	 * @param req
	 * @param rsp
	 * @return 是否已处理完成，为false表示 需要rewrite
	 * @throws ServletException
	 * @throws IOException
	 */
	boolean process(HttpServletRequest req, HttpServletResponse rsp) throws ServletException, IOException;
}
